pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let mut fsum = 1;
    let mut x = 0;
    let mut y = 1;
    let mut sum = 0;
    while sum < threshold {
        if sum % 2 != 0{
            fsum += y;
        }
        sum  = x + y;
        x = y;
        y = sum;
    }
    fsum
}

